package com.wf.smartcomm.server.bean;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.google.gson.annotations.Expose;

@Entity
@Table(name = "t_bill")
public class Bill {
	@Expose
	@Id
	@Column(length = 32)
	private String objectId;
	
	@Expose
	@Column(length = 20)
	private String createdAt;
	
	@Expose
	@Column(length = 32)
	private String orderCode;
	
	@ManyToOne
	@JoinColumn(name="hid")
	private House house;
	
	@Expose
	@Column
	private Integer status;//1--已缴费 0--未缴费
	
	@Expose
	@Column
	private Integer type;//1--已锁 0--未锁
	
	@ManyToOne
	@JoinColumn(name = "uid")
	private User user;
	
	@Expose
	@Column
	private BigDecimal price;
	
	@Expose
	@Column(length = 20)
	private String payAt;

	@Expose
	@Column(length = 20)
	private String fromAt;
	
	@Expose
	@Column(length = 20)
	private String toAt;
	
	@Column
	private Boolean isNotified;

	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public String getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(String createdAt) {
		this.createdAt = createdAt;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public House getHouse() {
		return house;
	}

	public void setHouse(House house) {
		this.house = house;
	}


	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getPayAt() {
		return payAt;
	}

	public void setPayAt(String payAt) {
		this.payAt = payAt;
	}

	public String getFromAt() {
		return fromAt;
	}

	public void setFromAt(String fromAt) {
		this.fromAt = fromAt;
	}

	public String getToAt() {
		return toAt;
	}

	public void setToAt(String toAt) {
		this.toAt = toAt;
	}

	public Boolean getIsNotified() {
		return isNotified;
	}

	public void setIsNotified(Boolean isNotified) {
		this.isNotified = isNotified;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}
